package com.itqn.dao;

import com.itqn.pojo.Category;

import java.util.List;

/***
 * 分类表dao层接口
 */
public interface CategoryDao {

    //删除员工的方法
    int deleteCategory(int id) throws Exception;

    //添加员工的方法
    int AddCategory(Category category) throws Exception;

    //单查(根据id查询)
    Category findCategoryById(int id) throws Exception;

    //修改员工的方法
    int updateCategory(Category category) throws Exception;

    // 修改状态的方法
    Integer updatestatic(Category category) throws Exception;

    List<Category> query(String name, Integer pageSize, Integer page) throws Exception;

    Integer totalCount(String name, Integer pageSize, Integer page) throws Exception;

    List<Category> findAllCategory() throws Exception;
}
